
package com.example.cia.service;

import com.example.cia.support.HttpService;

public class getSightsService implements Service{
	
	boolean flag;
	
	public getSightsService(){
		flag = false;
	}

	@Override
	public void setFlag(boolean b) {
		flag = b;
	}
	
	public String getSights(int id){
		String result;
		HttpService<Integer> getSights = new HttpService<Integer>();
		getSights.setData(id);
		getSights.setUrl("/CIADatabse/getSightsServlet");
		getSights.doHttpGet();
		getSights.setService(this);
		while(true){
			if(!flag);
			else
				break;
		}
		result = getSights.getResult();
		return result;
	}

}
